/**
 * Copyright (c) 2007,中企动力华南研发中心<br>
 * All rights reserved.
 */
package com.ce.pms.renovation.dao.impl;

import java.util.List;

import org.hibernate.Query;

import com.ce.pms.base.dao.impl.PmsBaseDaoImpl;
import com.ce.pms.renovation.dao.ICheckConfirmItemDao;
import com.ce.pms.renovation.model.CheckConfirmItemDO;

/**
 * 功能描述：<br>
 * @author 罗军林 创建日期：2009-1-5
 */
public class CheckConfirmItemDaoImpl extends PmsBaseDaoImpl<CheckConfirmItemDO> implements ICheckConfirmItemDao {

	/**
	 * 功能描述:获取指定装修申请的所有进场确认项目<br>
	 * @param requistionId
	 * @return<br>
	 * Create author:罗军林<br>
	 * Create on:2009-1-5<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public List<CheckConfirmItemDO> getAllCheckConfirmItemConfigs(Long requistionId){
		String hql="FROM CheckConfirmItemDO item where item.renovateRequisition.id=?";
		Query query = createQuery(hql, requistionId);
		return query.list();
	}
}
